#ifndef TYPES_H
#define TYPES_H

#ifdef _MSC_VER
typedef unsigned __int8   u8;
typedef unsigned __int16 u16;
typedef unsigned __int32 u32;
typedef unsigned __int64 u64;

typedef   signed __int8   s8;
typedef   signed __int16 s16;
typedef   signed __int32 s32;
typedef   signed __int64 s64;
#else

#include <stdint.h>

typedef uint8_t   u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

typedef  int8_t   s8;
typedef  int16_t s16;
typedef  int32_t s32;
typedef  int64_t s64;
#endif

#endif // TYPES_H
